<?php
/*
 * 发起支付页面
 */ 
include 'config.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>支付DEMO</title>
<style>
	.tab
	{
		border-collapse: collapse;
		width: 980px;
		border: #999 1px dashed;
	}
	.tab td
	{
		padding: 5px;
		border: #999 1px dashed;
	}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
    <form name="form1" method="post" action="post_action.php" id="form1">
    <div style="height: 50px">
    </div>
    <div>
        <table class="tab" width="100%" border="0" align="center">
            <tr>
                <td align="center" colspan="3">支付DEMO</td>
            </tr>
			<tr>
                <td align="left">
                    商户号：<span style="color: Red" >*</span>
                </td>
                <td>
                    <input type="text" name="partner" id="partner" value="<?php echo partner;?>" />
                </td>
				<td>请替换自己的商户号</td>
            </tr>
			<tr>
                <td align="left">
                    商户密钥：<span style="color: Red" >*</span>
                </td>
                <td>
                    <input name="md5key" type="text" id="md5key" value="<?php echo md5key;?>" />
                </td>
				<td>请替换自己的签名密钥</td>
            </tr>
			<tr>
                <td align="left">
                    业务类型：<span style="color: Red" >*</span>
                </td>
                <td>
                <select name="pay_service_type">
                    <option value="1">PC网银收银台</option>
                    <option value="2">PC网银直连</option>
                    <option value="3">wap网银</option>
                    <option value="4">微信扫码</option>
                    <option value="5">支付宝扫码</option>
                    <option value="6">微信WAP支付</option>
                    <option value="7">支付宝WAP支付</option>
                    <option value="8">微信公众号支付</option>
                    <option value="9">QQ钱包扫码</option>
                    <option value="10">QQ钱包WAP支付</option>
                </select>
                </td>
				<td></td>
            </tr>
            <tr>
                <td align="left">
                    银行编码：<span style="color: Red">*</span>
                </td>
                <td>
                    <input type="text"  name="pay_bank_code" id="pay_bank_code" value="CCB" />
                </td>
				<td>PC网银直连的时候不能为空</td>
            </tr>			
            <tr>
                <td align="left" style="width: 150px">
                    订单日期：<span style="color: Red;">*</span>
                </td>
                <td>
                    <input name="pay_date" id="pay_date" type="text" value="<?php echo time();?>" />
                </td>
				<td>订单日期<span style="color: Red;">(取值time()即前时间戳)</span></td>
            </tr>
            <tr>
                <td align="left" style="width: 150px">
                    订单号：<span style="color: Red;">*</span>
                </td>
                <td>
                    <input name="pay_order_id" id="pay_order_id" type="text" value="<?php echo date("YmdHis").mt_rand(100000, 999999);?>" />
                </td>
				<td>商户订单号<span style="color: Red;">(要保证唯一,长度20位)</span></td>
            </tr>
            <tr>
                <td align="left">
                    商品名称：<span style="color: Red">*</span>
                </td>
                <td>
                    <input type="text"  name="pay_product_name" id="pay_product_name" value="测试商品" />
                </td>
				<td></td>
            </tr>
            <tr>
                <td align="left">
                    支付金额：<span style="color: Red">*</span>
                </td>
                <td>
                    <input type="text"  name="pay_amount" id="pay_amount" value="1" />
                </td>
				<td>单位分</td>
            </tr>
			<tr>
                <td align="left">
                    异步回调地址：<span style="color: Red">*</span>
                </td>
                <td>
                    <input type="text"  name="pay_notify_url" id="pay_notify_url" value="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'/notify.php'?>" />
                </td>
				<td>服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问</td>
            </tr>
			<tr>
                <td align="left">
                    同步步回调地址：<span style="color: Red">*</span>
                </td>
                <td>
                    <input type="text"  name="pay_return_url" id="pay_return_url" value="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'/return.php'?>" />
                </td>
				<td>服务器同步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问</td>
            </tr> 
            <tr>
                <td align="left" style="width: 150px">
                    商户备注：<span style="color: Red;">*</span>
                </td>
                <td>
                    <input type="text" name="pay_remark" id="pay_remark" value="测试"  />
                    
                </td>
				<td>商户自定义信息,最长50字符</td>
            </tr>

			<td></td>
            <tr>
                <td align="center" colspan="3">
                    <input type="submit" name="Button1" value="确定" id="Button1" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>

